using UnityEngine;

public class destroyAfter : MonoBehaviour
{
	public float destroyTime = 5f;

	private float timer;

	private void Update()
	{
		timer += Time.deltaTime;
		if (destroyTime <= timer)
		{
			UnityEngine.Object.Destroy(base.gameObject);
		}
	}
}
